<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{serviceDepartmentList.firstResult}"></f:viewParam>	
	   	<f:viewParam name="moduleName" value="主管单位管理"></f:viewParam>
   	</f:metadata>
   
   	<ui:define name="content">
   
		<h:form id="searchForm">
			<p:panel id="searchResult">
				<f:facet name="header">主管单位管理</f:facet>
				<p:dataTable value="#{serviceDepartmentList.resultList}" var="_serviceDepartment">
					
					<p:column sortBy="#{_serviceDepartment.cnname}">
						<f:facet name="header">单位名称</f:facet>
						#{_serviceDepartment.cnname}
					</p:column>
					
					<p:column style="text-align: center;width:100px;">
						<f:facet name="header">操作</f:facet>
						<h:outputLink  value="ServiceDepartmentEdit.xhtml">
							编辑
							<f:param name="serviceDepartmentId" value="#{_serviceDepartment.id}"></f:param>
						</h:outputLink>
					</p:column>
				</p:dataTable>
			</p:panel>
			
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{serviceDepartmentList}" />
			</ui:include>
			
		</h:form>
		
		<p:button href="ServiceDepartmentEdit.xhtml" value="新增主管单位"></p:button>
      
   	</ui:define>
</ui:composition>
